package com.ls.mysql.quartz.entity;

/**
 * @Author Maple.Chen
 * @Description 封装当前正在运行的任务的实体类, 用于页面展示与管理
 * @Date 9:05 2020/5/29
 **/
public class ScheduleJob {

    // 任务名称
    private String jobName;
    // 任务分组名称
    private String jobGroup;
    // 触发器
    private String description;
    // 任务状态
    private String status;
    // 任务表达式
    private String cronExpression;
    // 时区
    private String timeZone;
    // 继承至QuartzJobBean的任务执行类的类路径
    private String jobClassPath;

    public ScheduleJob() {
    }

    public ScheduleJob(String jobName, String jobGroup, String description, String status, String cronExpression, String timeZone, String jobClassPath) {
        this.jobName = jobName;
        this.jobGroup = jobGroup;
        this.description = description;
        this.status = status;
        this.cronExpression = cronExpression;
        this.timeZone = timeZone;
        this.jobClassPath = jobClassPath;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getTimeZone() {
        return timeZone;
    }

    public void setTimeZone(String timeZone) {
        this.timeZone = timeZone;
    }

    public String getJobClassPath() {
        return jobClassPath;
    }

    public void setJobClassPath(String jobClassPath) {
        this.jobClassPath = jobClassPath;
    }

    @Override
    public String toString() {
        return "ScheduleJob{" +
                "jobName='" + jobName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", description='" + description + '\'' +
                ", status='" + status + '\'' +
                ", cronExpression='" + cronExpression + '\'' +
                ", timeZone='" + timeZone + '\'' +
                ", jobClassPath='" + jobClassPath + '\'' +
                '}';
    }
}
